<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Cat extends Model
{
    protected $fillable = [
        'catname', 'type','is_show','level','father_id',
    ];

    public function getIsshowAttribute($value)
    {
        return $value?'展示':'隐藏';
    }


}
